package gao.xiaolei.copyEntity;

import gao.xiaolei.entity.TestCheckBase;
import gao.xiaolei.entity.TestDesignCheck;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.time.LocalDateTime;

@Entity
@Data
public class TestDesignCheckCopy extends TestCheckBase {

    @Column
    private String subjectPath;

    public TestDesignCheckCopy(TestDesignCheck testDesignCheck) {
        super(testDesignCheck.getId(), testDesignCheck.getTargetId(), testDesignCheck.getCheckMan(), testDesignCheck.getAnnotate(), testDesignCheck.getIsPass(), testDesignCheck.getIsFinish(), testDesignCheck.getCheckDate(),testDesignCheck.getProjectId());
        this.subjectPath=testDesignCheck.getSubjectPath();
    }

    public TestDesignCheckCopy(String id, int isPass, String checkMan, int isFinish, LocalDateTime checkDate) {
        super(id, isPass, checkMan, isFinish, checkDate,null);
    }

    public TestDesignCheckCopy() {
    }
}
